<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="../assets/images/favicon.ico" rel="icon">
    <title>数据分析展示系统</title>
    <link rel="stylesheet" href="../assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="../assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
            <img src="../assets/images/logo.png"/>
            <cite>&nbsp;数据分析展示系统</cite>
        </div>
<!--        &lt;!&ndash;        // 多系统选择、&ndash;&gt;-->
<!--        <ul class="layui-nav layui-layout-left">-->
<!--            <li class="layui-nav-item" lay-unselect="">-->
<!--                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>-->
<!--            </li>-->
<!--            <li class="layui-nav-item" lay-unselect="">-->
<!--                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>-->
<!--            </li>-->
<!--            <li class="layui-nav-item layui-hide-xs layui-this" lay-unselect=""><a nav-bind="xt1">系统一</a></li>-->
<!--            <li class="layui-nav-item layui-hide-xs" lay-unselect=""><a nav-bind="xt2">系统二</a></li>-->
<!--            <li class="layui-nav-item layui-hide-xs" lay-unselect=""><a nav-bind="xt3">系统三</a></li>-->
<!--            &lt;!&ndash; 小屏幕下变为下拉形式 &ndash;&gt;-->
<!--            <li class="layui-nav-item layui-hide-sm layui-show-xs-inline-block" lay-unselect="">-->
<!--                <a>更多<span class="layui-nav-more"></span></a>-->
<!--                <dl class="layui-nav-child">-->
<!--                    <dd lay-unselect=""><a nav-bind="xt1">系统一</a></dd>-->
<!--                    <dd lay-unselect=""><a nav-bind="xt2">系统二</a></dd>-->
<!--                    <dd lay-unselect=""><a nav-bind="xt3">系统二</a></dd>-->
<!--                </dl>-->
<!--            </li>-->
<!--            <span class="layui-nav-bar" style="left: 330.891px; top: 48px; width: 0px; opacity: 0;"></span></ul>-->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="message" title="消息">
                    <i class="layui-icon layui-icon-notice"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="note" title="便签"><i class="layui-icon layui-icon-note"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="lockScreen" title="锁屏"><i class="layui-icon layui-icon-password"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a>
                    <img src="../assets/images/head.jpg" class="layui-nav-img">
                    <cite>管理员</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd lay-unselect><a ew-href="page/template/user-info.html">个人中心</a></dd>
                    <dd lay-unselect><a ew-event="psw">修改密码</a></dd>
                    <hr>
                    <dd lay-unselect><a ew-event="logout" data-url="page/template/login/login.html">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="theme" title="主题"><i class="layui-icon layui-icon-more-vertical"></i></a>
            </li>
        </ul>
    </div>

    <!--    &lt;!&ndash; 侧边栏 &ndash;&gt;-->
    <!--    <div class="layui-side" id="left_side_menu">-->
    <!--        <div class="layui-side-scroll" >-->
    <!--            <ul class="layui-nav layui-nav-tree arrow2" lay-filter="admin-side-nav" lay-shrink="_all">-->

    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-home"></i>&emsp;<cite>Dashboard</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="/console/workplace">工作台</a></dd>-->
    <!--                        <dd><a lay-href="/console/console">控制台</a></dd>-->
    <!--                        <dd><a lay-href="/console/dashboard">分析页</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-set"></i>&emsp;<cite>系统管理</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="page/system/user.html">用户管理</a></dd>-->
    <!--                        <dd><a lay-href="page/system/role.html">角色管理</a></dd>-->
    <!--                        <dd><a lay-href="page/system/authorities.html">权限管理</a></dd>-->
    <!--                        <dd><a lay-href="page/system/dictionary.html">字典管理</a></dd>-->
    <!--                        <dd><a lay-href="page/system/organization.html">机构管理</a></dd>-->
    <!--                        <dd><a lay-href="page/system/login-record.html">登录日志</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-template"></i>&emsp;<cite>模板页面</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd>-->
    <!--                            <a>表单页</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/template/form/form-basic.html">基础表单</a></dd>-->
    <!--                                <dd><a lay-href="page/template/form/form-advance.html">复杂表单</a></dd>-->
    <!--                                <dd><a lay-href="page/template/form/form-step.html">分步表单</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd>-->
    <!--                            <a>列表页</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/template/table/table-basic.html">数据表格</a></dd>-->
    <!--                                <dd><a lay-href="page/template/table/table-advance.html">复杂表格</a></dd>-->
    <!--                                <dd><a lay-href="page/template/table/table-img.html">图片表格</a></dd>-->
    <!--                                <dd><a lay-href="page/template/table/table-card.html">卡片列表</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd>-->
    <!--                            <a>错误页</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/template/error/error-500.html">500</a></dd>-->
    <!--                                <dd><a lay-href="page/template/error/error-404.html">404</a></dd>-->
    <!--                                <dd><a lay-href="page/template/error/error-403.html">403</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd>-->
    <!--                            <a>登录页</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a href="page/template/login/login.html" target="_blank">登录页</a></dd>-->
    <!--                                <dd><a href="page/template/login/reg.html" target="_blank">注册页</a></dd>-->
    <!--                                <dd><a href="page/template/login/forget.html" target="_blank">忘记密码</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd><a lay-href="page/template/user-info.html">个人中心</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-component"></i>&emsp;<cite>扩展组件</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd>-->
    <!--                            <a>常用组件</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/plugin/basic/dialog.html">弹窗扩展</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/basic/dropdown.html">下拉菜单</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/basic/notice.html">消息通知</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/basic/tagsInput.html">标签输入</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/basic/cascader.html">级联选择</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/basic/steps.html">步骤条</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd>-->
    <!--                            <a>进阶组件</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/plugin/advance/printer.html">打印插件</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/advance/split.html">分割面板</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/advance/formX.html">表单扩展</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/advance/tableX.html">表格扩展</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/advance/dataGrid.html">数据列表</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/advance/contextMenu.html">鼠标右键</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd>-->
    <!--                            <a>其他组件</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="page/plugin/other/circleProgress.html">圆形进度条</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/other/editor.html">富文本编辑</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/other/mousewheel.html">鼠标滚轮</a></dd>-->
    <!--                                <dd><a lay-href="page/plugin/other/other.html">更多组件</a></dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                        <dd><a lay-href="page/plugin/more.html">更多扩展</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-app"></i>&emsp;<cite>经典实例</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="page/example/dialog.html">弹窗实例</a></dd>-->
    <!--                        <dd><a lay-href="page/example/course.html">课程管理</a></dd>-->
    <!--                        <dd><a lay-href="page/example/calendar.html">排课管理</a></dd>-->
    <!--                        <dd><a lay-href="page/example/question.html">添加试题</a></dd>-->
    <!--                        <dd><a lay-href="page/example/file.html">文件管理</a></dd>-->
    <!--                        <dd><a lay-href="page/example/table-crud.html">表格CRUD</a></dd>-->
    <!--                        <dd><a href="page/example/side-more.html" target="_blank">多系统模式</a></dd>-->
    <!--                        <dd><a href="page/example/side-ajax.html" target="_blank">Ajax侧边栏</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-release"></i>&emsp;<cite>LayUI组件</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="page/plugin/other/layui.html">组件演示</a></dd>-->
    <!--                        <dd><a lay-href="https://www.layui.com/doc/element/button.html#use">layui文档</a></dd>-->
    <!--                        <dd><a lay-href="https://layer.layui.com/">layer弹窗</a></dd>-->
    <!--                        <dd><a lay-href="https://www.layui.com/laydate/">laydate日期</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-unlink"></i>&emsp;<cite>多级菜单</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a>二级菜单</a></dd>-->
    <!--                        <dd>-->
    <!--                            <a>二级菜单</a>-->
    <!--                            <dl class="layui-nav-child">-->
    <!--                                <dd><a lay-href="javascript:layer.msg('Hello!');">三级菜单</a></dd>-->
    <!--                                <dd>-->
    <!--                                    <a>三级菜单</a>-->
    <!--                                    <dl class="layui-nav-child">-->
    <!--                                        <dd><a lay-href="javascript:;">四级菜单</a></dd>-->
    <!--                                        <dd>-->
    <!--                                            <a>四级菜单</a>-->
    <!--                                            <dl class="layui-nav-child">-->
    <!--                                                <dd><a>五级菜单</a></dd>-->
    <!--                                                <dd>-->
    <!--                                                    <a lay-href="https://baidu.com">百度一下</a>-->
    <!--                                                </dd>-->
    <!--                                            </dl>-->
    <!--                                        </dd>-->
    <!--                                    </dl>-->
    <!--                                </dd>-->
    <!--                            </dl>-->
    <!--                        </dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a lay-href="//baidu.com"><i class="layui-icon layui-icon-unlink"></i>&emsp;<cite>一级菜单</cite></a>-->
    <!--                </li>-->


    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-home"></i>&emsp;<cite>自动报表</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="/frame">自动报表展示</a></dd>-->
    <!--                        <dd><a lay-href="/page/autoreport/webcat.html">SQL分析</a></dd>-->
    <!--                        <dd><a lay-href="/page/autoreport/datasource.html">数据源配置</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-home"></i>&emsp;<cite>股票行情</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="/premiumMarkets/macroIndex">宏观指数概览</a></dd>-->
    <!--                        <dd><a lay-href="/premiumMarkets/valueRecommend">价值投资推荐</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--                <li class="layui-nav-item">-->
    <!--                    <a><i class="layui-icon layui-icon-home"></i>&emsp;<cite>财报数据</cite></a>-->
    <!--                    <dl class="layui-nav-child">-->
    <!--                        <dd><a lay-href="/financialReport/basicFinancialData">基础财务数据</a></dd>-->
    <!--                        <dd><a lay-href="/financialReport/balanceSheet">资产负债表</a></dd>-->
    <!--                        <dd><a lay-href="/financialReport/cashFlowStatement">现金流量表</a></dd>-->
    <!--                        <dd><a lay-href="/financialReport/incomeStatement">利润表</a></dd>-->
    <!--                    </dl>-->
    <!--                </li>-->
    <!--            </ul>-->
    <!--        </div>-->
    <!--    </div>-->

<!--    // json 渲染侧边栏菜单-->
    <div class="layui-side">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="admin-side-nav" lay-shrink="all"></ul>
        </div>
    </div>




    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
    <div class="layui-footer layui-text">
        copyright © 2020 <a href="http://www.baidu.com" target="_blank">easyweb.vip</a> all rights reserved.
        <span class="pull-right">Version 3.1.8</span>
    </div>
</div>

<!-- // 加载动画-->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>


<!-- js部分 -->
<script type="text/javascript" src="../assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="../assets/js/common.js?v=318"></script>
<script type="text/javascript" src="../assets/module/index.js"></script>

<script id="sideNav" type="text/html">
    {{#  layui.each(d, function(index, item){ }}
    <li class="layui-nav-item">
        <a lay-href="{{item.url}}"><i class="{{item.icon}}"></i>&emsp;<cite>{{ item.name }}</cite></a>
        {{# if(item.subMenus&&item.subMenus.length>0){ getSubMenus(item.subMenus); } }}
    </li>
    {{#  }); }}
    {{# function getSubMenus(subMenus){ }}
    <dl class="layui-nav-child">
        {{# layui.each(subMenus, function(index, subItem){ }}
        <dd>
            <a lay-href="{{ subItem.url }}">{{ subItem.name }}</a>
            {{# if(subItem.subMenus&&subItem.subMenus.length>0){ getSubMenus(subItem.subMenus); } }}
        </dd>
        {{# }); }}
    </dl>
    {{# } }}
</script>
<script>
    layui.use(['layer', 'element', 'admin', 'laytpl','element'], function () {
        var $ = layui.jquery;
        var index = layui.index;
        var admin = layui.admin;
        var laytpl = layui.laytpl;
        var element = layui.element;

        // 默认加载主页
        index.loadHome({
            // 主页路径
            menuPath: '/console/workplace',
            // tab 标题
            menuName: '<i class="layui-icon layui-icon-home">工作台</i>',
            // 是否恢复记忆的tab
            loadSetting: true,
            // 是否恢复最后一个tab， 默认为 false
            onlyLast: false
        });


        // // 加载菜单
        // $.get('/loadMenu', function (res) {
        //     console.info(res);
        //     laytpl(sideNav.innerHTML).render(res.data, function (html) {
        //         $('[lay-filter=admin-side-nav]').html(html);
        //         element.render('nav', 'admin-side-nav');  // 这里非常重要
        //     });
        // }, 'json');


        // ajax渲染侧边栏
        $.get('/loadMenu', function (res) {
            laytpl(sideNav.innerHTML).render(res.t.subMenus, function (html) {
                // $('*[lay-filter=admin-side-nav]').html(html);
                $('*[lay-filter=admin-side-nav]').html(html);
                // element.render('nav');
                element.render('nav', 'admin-side-nav');  // 这里非常重要
                admin.activeNav('../console/console.html');
            });
        }, 'json');

        // admin.open({
        //     type: 1,
        //     content: '<div style="padding: 15px;">此页面的左边侧边栏是通过ajax请求json数据然后前端渲染出来的</div>',
        //     title: false,
        //     shade: false,
        //     offset: '30px'
        // });


    });
</script>
</body>
</html>
